<script setup>
  import {ref} from "vue";

  const city=ref('')
</script>

<template>
<h1>EL-下拉选框组件</h1>
  <el-select v-model="city" style="width: 50%" placeholder="请选择城市">
    <el-option label="北京" value="北京"></el-option>
    <el-option label="上海" value="上海"></el-option>
    <el-option label="深圳" value="深圳"></el-option>
    <el-option label="广州" value="广州"></el-option>
  </el-select>

  <h4>{{city}}</h4>
</template>

<style scoped>

</style>